<template>
  <div
    class="courseHeadInfo"
    :style="[
      {
        backgroundImage: 'url(' + require('@/assets/images/courseBg.png') + ')',
      },
    ]"
  >
    <div class="container">
      <breadcrumb />
      <div class="courseName">
        {{ `${courseInfo.currName || courseInfo.name || ""} / ${$route.meta.name}` }}
      </div>
      <!-- <div class="courseDesc">
        <div class="detail">难度 中级</div>
        <div class="detail">学习人数13090</div>
        <div class="detail">综合评分：☆☆☆☆☆</div>
      </div> -->
    </div>
  </div>
</template>

<script>
import breadcrumb from "@/components/Breadcrumb/index";

export default {
  components: {
    breadcrumb,
  },
  props: {
    courseInfo: {
      tpye: Object,
      default: {
        name: "",
      },
    },
  },
  created() {
  },
};
</script>

<style lang="stylus">
.courseHeadInfo {
  height: 200px;
  background-repeat: no-repeat;
  background-size: 100% 100%;

  .container {
    padding-top: 24px;
    margin: 0 auto;
    max-width: 1200px;

    .courseName {
      margin-top: 25px;
      height: 43px;
      line-height: 43px;
      font-family: PMingLiU-ExtB;
      font-size: 32px;
      color: #ffffff;
    }

    .courseDesc {
      margin-top: 29px;
      display: flex;

      .detail {
        position: relative;
        margin: 0 20px;
        line-height: 19px;
        font-size: 14px;
        color: #ffffff;
      }

      .detail:first-child {
        margin-left: 0;
      }

      .detail:last-child {
        margin-right: 0;
      }

      .detail::after {
        position: absolute;
        content: '';
        top: 2px;
        right: -20px;
        height: 15px;
        width: 1px;
        background: #fff;
      }

      .detail:last-child::after {
        content: none;
      }
    }
  }
}
</style>